package com.yourenbang.lingyun.transaction.web.service.impl.pay;

import com.yourenbang.lingyun.core.message.Result;
import com.yourenbang.lingyun.transaction.web.service.pay.PayActivateService;
import com.yourenbang.transaction.api.model.dto.pay.AddEposMerBountyDTO;
import com.yourenbang.transaction.api.service.pay.PayActivateApiService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class PayActivateApiServiceImpl implements PayActivateApiService {

    @Autowired
    private PayActivateService payActivateService;

    /**
     * 激活返现关系
     */
    @Override
    public Result<Void> addEposMerBounty(AddEposMerBountyDTO addEposMerBountyDTO) {
        payActivateService.addEposMerBounty(addEposMerBountyDTO.getUserBaseId(), addEposMerBountyDTO.getChannelId(), addEposMerBountyDTO.getSn());
        return Result.builder().success();
    }
}
